<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>吉车惠后台管理系统</title>
    <%@include file="/global/global-other.jsp" %>

    <script type="text/javascript">
        var $sys_log_admin_login = new Object();
        var $sys_log_admin_login_Datagrid;
        var $menu;
        var $sys_log_admin_login_toolbar = [{
            text:'<i class="fa fa-search" aria-hidden="true"></i>刷新',
            handler:function(){
                $sys_log_admin_login.reload();
            }
        }
        ];
        $(function(){
            //gird 初始化
            $sys_log_admin_login_Datagrid = $('#sys_log_admin_login_Datagrid').datagrid({
                filterBtnIconCls:'icon-filter',
                queryParams: {
                    filter_EQ_delete_status : 0,
                    filter_EQ_admin_id : '${session_admin_key.adminId}'
                },
                pageSize : 20,
                remoteFilter:true
            });

            $sys_log_admin_login_Datagrid.datagrid('enableFilter', [
                {field:'ip',type:'label'},
                {field:'loginAt',type:'label'},
                {field:'t',type:'label'}
            ]);

        });

        //刷新

        $sys_log_admin_login.reload = function(){
            $sys_log_admin_login_Datagrid.datagrid('reload');
        };

    </script>
</head>
<body>
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false">
        <table id="sys_log_admin_login_Datagrid"  style="width:100%;height:100%"
               data-options="border:false,rownumbers:true,autoRowHeight:false,singleSelect:true,pagination:true,sortName:'loginAt',sortOrder:'desc',toolbar:$sys_log_admin_login_toolbar,rowStyler: function(index,row){return {style:'height:30px'};},url:'${ctx}/sys/log/adminlogin/search?_m=load',method:'post'">
            <thead>
            <tr>
                <th data-options="field:'account',width:120,align:'center'">账号</th>
                <th data-options="field:'name',width:100,align:'center'">姓名</th>
                <th data-options="field:'ip',width:150,align:'center'">登录IP</th>
                <th data-options="field:'loginAt',width:150,align:'center'">登录时间</th>
                <th data-options="field:'t',width:20,align:'center'"></th>
            </tr>
            </thead>
        </table>
    </div>
</div>
</body>
</html>